/**
 * Created with IntelliJ IDEA.
 * Description:测试链表用
 * User: LXW
 * Date: 2021-12-02
 * Time: 13:10
 */
public class TestDemo {
    public static void main(String[] args) {
//        MyArrayList myArraylist = new MyArrayList();
//        myArraylist.add(0,1);
//        myArraylist.add(1,2);
//        myArraylist.add(2,3);
//        myArraylist.add(3,4);
//        myArraylist.display();
//        System.out.println("============");
//        // myArraylist.setpos(2,99);
//        // myArraylist.remove(2);
//        myArraylist.display();
        DoubleLinkList doubleLinkList = new DoubleLinkList();
        doubleLinkList.addLast(1);
        doubleLinkList.addLast(1);
        doubleLinkList.addLast(3);
        doubleLinkList.addLast(4);
        doubleLinkList.display();
        System.out.println("=========");
        doubleLinkList.remove(1);
        doubleLinkList.display();









    }
}

